#!/bin/sh
#卸载前执行脚本
myFile="/Library/LaunchDaemons/com.Y3.WeChatTool.plist"

echo "prerm exist plist?"
if [ -f "$myFile" ];
then
#暂停进程
echo "exist run unload"
launchctl stop com.Y3.WeChatTool
launchctl unload -w "$myFile"
else
echo "not exist"
fi
#end
